package com.zjd.association.service.impl;

import com.zjd.association.entity.Schedule;
import com.zjd.association.entity.Users;
import com.zjd.association.mapper.ScheduleMapper;
import com.zjd.association.service.ScheduleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ScheduleServiceImpl implements ScheduleService {

    @Autowired
    private ScheduleMapper scheduleMapper;
    @Override
    public List<Schedule> queryAllScheduleInfo(Users user) {
        List<Schedule> scheduleList = scheduleMapper.queryAllScheduleInfo(user);
        return scheduleList;
    }

    @Override
    public List<Schedule> queryAllScheduleInfo2(Integer id) {
        List<Schedule> scheduleList = scheduleMapper.queryAllScheduleInfo2(id);
        return scheduleList;
    }
}
